import { convertRequestURL } from '../utils/utils'

const url = (url) => {
    let protocol = location.protocol
    let host = location.host
    let pathname = location.pathname
    let reURL = /^(https?|ftp|file):\/\/.+$/;
    let str = ''
    if(!reURL.test(url)){
        return convertRequestURL(url)
    }
    else{
        return url
    }
}

export default url
